package com.k7.mobile.platform.dataobject;

import java.util.Date;

import com.k7.mobile.platform.dataobject.BaseDO;
import com.k7.mobile.platform.web.support.RedisConstants;

/**
 * 推荐表(cmstop_sj_recommendx)
 * 
 * @author nandi.ldl
 * @version  RecommendxDO.java 2013-4-16 10:57:48
 * 
 */
public class RecommendxDO extends BaseDO  {

	private static final long serialVersionUID = 1L;
	
	private Integer id; //编号
	private Integer cid; //类型id或游戏ID
	private String vname; //名称
	private Integer rank; //排序
	private Short isSys; //是否为系统默认
	private Integer parentId; //类型id
	private Integer num; //数量


	public Integer getId(){
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getCid(){
		return cid;
	}
	public void setCid(Integer cid) {
		this.cid = cid;
	}
	public String getVname(){
		return vname;
	}
	public void setVname(String vname) {
		this.vname = vname;
	}
	public Integer getRank(){
		return rank;
	}
	public void setRank(Integer rank) {
		this.rank = rank;
	}
	
	public Integer getNum(){
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
	public Short getIsSys() {
		return isSys;
	}
	public void setIsSys(Short isSys) {
		this.isSys = isSys;
	}
	public Integer getParentId() {
		return parentId;
	}
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	@Override
	public String genCacheKey() {
		return this.getId() + RedisConstants.DEFAULT_CACHE_FIELD_SEPARATOR+ 
				this.getCid() + RedisConstants.DEFAULT_CACHE_FIELD_SEPARATOR+ 
				this.getParentId() + RedisConstants.DEFAULT_CACHE_FIELD_SEPARATOR+ 
				this.getPerPageSize() + RedisConstants.DEFAULT_CACHE_FIELD_SEPARATOR+ 
				this.getToPage();
	}
}
